package com.example.cors.domain;

import com.alibaba.fastjson2.JSONObject;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

@Data
@Accessors(chain = true)
public class CorsReq {
    private String url;

    private String method;

    private JSONObject body;

    private HttpServletRequest req;

    /***
     * 使用哪些请求头
     * 直取现请求中的请求头
     */
    private List<String> useHeaders;
}
